// 引入项目中全部的全局组件
import SvgIcon from '@/components/SvgIcon/index.vue';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 全局组件的对象
import Category from './Category/index.vue'
import Pagination from './Pagination/index.vue'
const allGlobalComponents = { SvgIcon,Category,Pagination };
// 对外暴露一个插件对象
export default {
    install(app:any) {
        Object.keys(allGlobalComponents).forEach((key) => {
            app.component(key, allGlobalComponents[key]);
        })
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}